import request from '@/utils/request'

// 查询无列表
export function listResidential(query) {
  return request({
    url: '/detect/residential/list',
    method: 'get',
    params: query
  })
}

export function getList(query) {
  return request({
    url: '/detect/residential/lists',
    method: 'get',
    params: query
  })
}

// 查询无详细
export function getResidential(id) {
  return request({
    url: '/detect/residential/' + id,
    method: 'get'
  })
}

// 新增无
export function addResidential(data) {
  return request({
    url: '/detect/residential',
    method: 'post',
    data: data
  })
}

// 修改无
export function updateResidential(data) {
  return request({
    url: '/detect/residential',
    method: 'put',
    data: data
  })
}

// 删除无
export function delResidential(id) {
  return request({
    url: '/detect/residential/' + id,
    method: 'delete'
  })
}
